package cn.wolfcode.cloud.shop.web.feign;


import cn.wolfcode.cloud.shop.domain.Goods;
import cn.wolfcode.cloud.shop.web.feign.hystrix.GoodsFeignHystrix;
import cn.wolfcode.cloud.shop.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * @author Administrator
 */
@FeignClient(name = "goods-server",fallback = GoodsFeignHystrix.class)
public interface GoodsFeignApi {

    @RequestMapping("/queryByIdSet")
    Result<List<Goods>> queryByIdSet(@RequestParam("idSet") Set<Long> idSet);
}
